package edu.spec.pms.model.student;

import javax.persistence.*;
import java.util.Date;

/**
 * 学生签到次数汇总
 * 1.记录实习单位经纬度
 * 2.记录签到次数汇总
 * Created by MadFrog on 2016/10/31.
 */
@Entity
@Table(name = "t_sign_in_sum")
public class SignInSum {
    private int id;
    private int studentId;
    private String wechatOpenId;
    private Date lastSignInDate;
    private int signInSum;
    private float firstLatitude;
    private float firstLongitude;
    private float firstPrecision;

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "student_id")
    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    @Column(name = "wechat_open_id")
    public String getWechatOpenId() {
        return wechatOpenId;
    }

    public void setWechatOpenId(String wechatOpenId) {
        this.wechatOpenId = wechatOpenId;
    }

    @Column(name = "last_sign_in_date")
    public Date getLastSignInDate() {
        return lastSignInDate;
    }

    public void setLastSignInDate(Date lastSignInDate) {
        this.lastSignInDate = lastSignInDate;
    }

    @Column(name = "sign_in_sum")
    public int getSignInSum() {
        return signInSum;
    }

    public void setSignInSum(int signInSum) {
        this.signInSum = signInSum;
    }

    @Column(name = "first_latitude")
    public float getFirstLatitude() {
        return firstLatitude;
    }

    public void setFirstLatitude(float firstLatitude) {
        this.firstLatitude = firstLatitude;
    }

    @Column(name = "first_longitude")
    public float getFirstLongitude() {
        return firstLongitude;
    }

    public void setFirstLongitude(float firstLongitude) {
        this.firstLongitude = firstLongitude;
    }

    @Column(name = "first_precision")
    public float getFirstPrecision() {
        return firstPrecision;
    }

    public void setFirstPrecision(float firstPrecision) {
        this.firstPrecision = firstPrecision;
    }
}
